package com.kalian.client;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kalian.pojo.R;
import com.kalian.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("userservice")
public interface UserClient {
    @GetMapping("/user/findName")
    List<User> findById(String name);
    @GetMapping("/user/page")
    Page<User> test(@RequestParam int pageNum, @RequestParam int pageSize, @RequestParam String input);

    @GetMapping("/user/del")
    void del(@RequestParam int id);

    @PostMapping("/user/add")
    void add(@RequestBody User user);

}
